﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MainPage.master" AutoEventWireup="true" CodeFile="ProvincesManage.aspx.cs" Inherits="Manage_ProvincesManage" %>
<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<script type="text/javascript" src="/Manage/Js/ProvincesManage.js"></script>
<script type="text/javascript">
    ModelOfProvince = <%= new Provinces().ToJsonString() %>;
</script>

<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center"  >
  <tr >
    <td colspan="6" align="left" class="HeadTitle">&gt;&gt;省份管理</td>
    </tr>
  <tr class="TableHeadRow">
    <td width="60" align="center">编号</td>
    <td align="left">省份名称</td>
    <td width="60" align="center">排序值</td>
    <td width="150" align="center">最后调整日期</td>
    <td width="150" align="center">创建日期</td>
    <td width="150" align="center">管理 [<a href="javascript:Add();" class="red">+添加省份</a>] </td>
  </tr>

  <%
   if(listOfProvinces != null)
   {
       for(int i=0;i<listOfProvinces.Count;++i)
       {
           Provinces p = listOfProvinces[i];    
   %>
  <tr  onmouseover="this.style.backgroundColor='#F2F2F2';" onmouseout="this.style.backgroundColor='#FFFFFF';" >
    <td align="center"><%=i+1 %>.</td>
    <td align="left"><a href="javascript:void(0);" onclick="Edit(<%=p.ProvinceID %>);"><%=p.ProvinceName %>(ID=<%=p.ProvinceID %>)</a>  [ <a href="CitiesManage.aspx?ProvinceID=<%=p.ProvinceID %>" class="green">查看该省份下城市</a> ] [ <a href="AreasManage.aspx?ProvinceID=<%=p.ProvinceID %>" class="green">查看该省份下区域</a> ] </td>
    <td align="center" class="green bold" ><%=p.OrderValue %></td>
    <td align="center"><%=p.LastModifyDate.ToString("yyyy-MM-dd HH:mm:ss") %></td>
    <td align="center"><%=p.CreateDate.ToString("yyyy-MM-dd HH:mm:ss") %></td>
    <td align="center">[ <a href="javascript:void(0);" onclick="Edit(<%=p.ProvinceID %>);">编辑</a> ] [ <a href="javascript:void(0);" onclick="Delete(<%=p.ProvinceID %>);" class="red">删除</a> ]     </td>
  </tr>
  <% }
   }
  else
   { %>
     <tr>
        <td colspan="6" align="center" class="red">[ 未找到任何信息！]</td>
    </tr>
    <%} %>
</table>
</asp:Content>

